<?php
/**
 * Created by PhpStorm.
 * User: admin
 * Date: 2019/3/5
 * Time: 19:10
 */

namespace ElementVip\Shop\Backend\Service;

use ElementVip\Store\Backend\Repositories\GoodsRepository;

class BaseGoodsService
{
    protected $baseGoodsRepository;

    public function __construct(GoodsRepository $baseGoodsRepository)
    {
        $this->baseGoodsRepository = $baseGoodsRepository;
    }


    public function getGoodsPaginateByKeyword($keyword)
    {
        $goods = $this->baseGoodsRepository->getGoodsByKeyword($keyword);
        return $goods;
    }

}